/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author FIRE
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface WecharCusRouteLog extends BasicModel<WecharCusRouteLog> {
  ctype?: string; // 操作类型
  cusCode?: string; // 客户编码
  invCode?: string; // 存货编码
  oldAcct?: string; // 调整前账套
  newAcct?: string; // 调整后账套
  createByName?: string; // 操作员
}

export const wecharCusRouteLogList = (params?: WecharCusRouteLog | any) =>
  defHttp.get<WecharCusRouteLog>({ url: adminPath + '/setting/log/wecharCusRouteLog/list', params });

export const wecharCusRouteLogListData = (params?: WecharCusRouteLog | any) =>
  defHttp.post<Page<WecharCusRouteLog>>({ url: adminPath + '/setting/log/wecharCusRouteLog/listData', params });

export const wecharCusRouteLogForm = (params?: WecharCusRouteLog | any) =>
  defHttp.get<WecharCusRouteLog>({ url: adminPath + '/setting/log/wecharCusRouteLog/form', params });

export const wecharCusRouteLogSave = (params?: any, data?: WecharCusRouteLog | any) =>
  defHttp.postJson<WecharCusRouteLog>({ url: adminPath + '/setting/log/wecharCusRouteLog/save', params, data });

export const wecharCusRouteLogDelete = (params?: WecharCusRouteLog | any) =>
  defHttp.get<WecharCusRouteLog>({ url: adminPath + '/setting/log/wecharCusRouteLog/delete', params });
